package cn.ainit.sys.pagescript.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="SYS_BUTTON_OBJECT")
public class ButtonObject {
	
	@Id
	@Column(name="BUT_ID")     
	private String butId;
	
	@Column(name="BUT_ENAME")
	private String butEname;
	
	@Column(name="BUT_CNAME")               
	private String butCname;
	
	@Column(name="CALLBACK_FUN")                 
	private String callbackFun;
	
	
	@Column(name="SQL_TXT")                   
	private String sqlTxt;
	
	
	@Column(name="PROC_TXT")             
	private String procTxt;
	
	/***
	 * 'S;P'('P;S')   先执行 sql 再 执行proc      (先执行proc   再执行    sql  )    
	 * 'S'     只执行sql
	 * 'P'		只执行proc
	 */
	@Column(name="SQL_OR_PROC") 
	private String sqlOrProc;
	
	@Column(name="RETURN_PARM_COUNT")         
	private Integer returnParmCount;
	
	@Column(name="RETURN_PARM_STR")          
	private String returnParmStr;
	
	@Column(name="PARM_COUNT")           
	private Integer parmCount;
	
	@Column(name="INPUT_O_ID")                   
	private String inputOid;
	
	@Column(name="INPUT_DATE")      
	private Timestamp inputDate;
	
	@Column(name="MEMO")   
	private String memo;
	
	@Column(name="BUT_TYPE")
	private String butType;
	
	@Column(name="UPDATE_TABLE")
	private String updateTable;
	

	public String getButId() {
		return butId;
	}

	public void setButId(String butId) {
		this.butId = butId;
	}

	public String getButEname() {
		return butEname;
	}

	public void setButEname(String butEname) {
		this.butEname = butEname;
	}

	public String getButCname() {
		return butCname;
	}

	public void setButCname(String butCname) {
		this.butCname = butCname;
	}

	public String getCallbackFun() {
		return callbackFun;
	}

	public void setCallbackFun(String callbackFun) {
		this.callbackFun = callbackFun;
	}

	public String getSqlTxt() {
		return sqlTxt;
	}

	public void setSqlTxt(String sqlTxt) {
		this.sqlTxt = sqlTxt;
	}

	public String getProcTxt() {
		return procTxt;
	}

	public String getButType() {
		return butType;
	}

	public void setButType(String butType) {
		this.butType = butType;
	}

	public void setProcTxt(String procTxt) {
		this.procTxt = procTxt;
	}

	public String getSqlOrProc() {
		return sqlOrProc;
	}

	public void setSqlOrProc(String sqlOrProc) {
		this.sqlOrProc = sqlOrProc;
	}

	public Integer getReturnParmCount() {
		return returnParmCount;
	}

	public void setReturnParmCount(Integer returnParmCount) {
		this.returnParmCount = returnParmCount;
	}

	public String getReturnParmStr() {
		return returnParmStr;
	}

	public void setReturnParmStr(String returnParmStr) {
		this.returnParmStr = returnParmStr;
	}

	public Integer getParmCount() {
		return parmCount;
	}

	public void setParmCount(Integer parmCount) {
		this.parmCount = parmCount;
	}

	public String getInputOid() {
		return inputOid;
	}

	public void setInputOid(String inputOid) {
		this.inputOid = inputOid;
	}

	public Timestamp getInputDate() {
		return inputDate;
	}

	public void setInputDate(Timestamp inputDate) {
		this.inputDate = inputDate;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getUpdateTable() {
		return updateTable;
	}

	public void setUpdateTable(String updateTable) {
		this.updateTable = updateTable;
	}
	
	
}
